﻿Public Class itens_avaliacaoBO
    Dim itens_avaliacaoDAO As New itens_avaliacaoDAO

    Public Function insereRegistro(ByVal grid As DataGridView, ByVal uc As ucPreambulo) As List(Of Integer)
        Try
            Return itens_avaliacaoDAO.insereRegistro(grid, uc)
        Catch ex As Exception
            Throw ex
        End Try
    End Function

    Public Function getItens(ByVal num_registro As Integer, ByVal ano As Integer, ByVal id_secao As Integer) As Generic.List(Of itens_avaliacaoVO)
        Dim lista As New Generic.List(Of itens_avaliacaoVO)

        Try
            lista = itens_avaliacaoDAO.getItens(num_registro, ano, id_secao)
        Catch ex As Exception
            generica.gravaErro(ex)
        End Try
        Return lista
    End Function

    Public Function getItemDiretorio(ByVal num_registro As Integer, ByVal ano As Integer, ByVal id_secao As Integer) As itens_avaliacaoVO
        Dim item As New itens_avaliacaoVO

        Try
            item = itens_avaliacaoDAO.getItemDiretorio(num_registro, ano, id_secao)
        Catch ex As Exception
            generica.gravaErro(ex)
        End Try
        Return item
    End Function
End Class


